package com.webframe.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webframe.dao.IJdbcDao;
import com.webframe.service.def.IUserManageService;

@Service
public class UserManageService extends UserService implements IUserManageService
{

	@Autowired
	private IJdbcDao	jdbcDao;
	
	@Override
	public boolean checkExist(String orgName)
	{
		String sql = "select id_ from t_users where login_name_='" + orgName + "'";
		List<Map<String, Object>> list = jdbcDao.doQueryBySql(sql);
		if(list.size() > 0)
		{
			return true;
		}
		return false;
	}
	
}
